<?php
namespace app\api\controller;

use app\BaseController;
use app\model\Banner as SelfModel;
use app\model\BannerType;

use think\facade\Cookie;
use think\Response;
use think\Request;
use think\facade\Db;
class Banner extends Base
{


    public function initialize()
    {
        parent::initialize();
        $this->model = "\app\model\Banner";
        $this->list_rows = 10;
        $this->msg = '导航';
        $this->order = ['sort'=>'asc','id'=>'desc'];
        $this->status = [['status','=','1']];
    }

    public function a(){

        $bt = Db::table('tp_banner_type')->buildSql();
      halt($bt);
    }

}
